package cn.wolfcode.service;

import cn.wolfcode.domain.Permission;
import cn.wolfcode.query.PageResult;
import cn.wolfcode.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IPermissionService {
    void insert(Permission permission);
    void delete(Long id);
    void update(Permission permission);
    Permission selectOne(Long id);
    List<Permission> selectAll();

    PageInfo<Permission> query(QueryObject queryObject);

    void reload();

    List<String> selectAllPermissions(Long id);
}
